package com.hnuit.po;


import java.util.List;

//实体类——账户表
public class Accounts {
    private Integer id; //主键
    private String account_name; //账户名称
    private Integer balance ; //余额
    private List<Transactions> transactionsList;

    @Override
    public String toString() {
        return "Accounts{" +
                "id=" + id +
                ", account_name='" + account_name + '\'' +
                ", balance=" + balance +
                ", transactionsList=" + transactionsList +
                '}';
    }

    public List<Transactions> getTransactionsList() {
        return transactionsList;
    }

    public void setTransactionsList(List<Transactions> transactionsList) {
        this.transactionsList = transactionsList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount_name() {
        return account_name;
    }

    public void setAccount_name(String account_name) {
        this.account_name = account_name;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }
}
